package com.toubutu.audio.enums;

/**
 * @author 戒躁
 * @date 2023/12/20
 */
public enum RequestFrom {
    ADMIN("admin","后台"),
    FRONT("front","前台");
    private String header;
    private String desc;

    RequestFrom(String header, String desc){
        this.header = header;
        this.desc = desc;
    }
    public static RequestFrom getFrom(String header){
        for (RequestFrom value : RequestFrom.values()) {
            if (value.header.equals(header)){
                return value;
            }
        }
        return FRONT;
    }
}
